/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_price_apply_for.entity;

import com.jeeplus.modules.xs_book.entity.XsBook;
import javax.validation.constraints.NotNull;
import com.jeeplus.modules.xs_writer.entity.XsWriter;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 小说修改价格申请Entity
 * @author 天竹子
 * @version 2021-09-01
 */
@Data
public class XsPriceApplyFor extends DataEntity<XsPriceApplyFor> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="书籍id不能为空")
	@ExcelField(title="书籍id", fieldType=XsBook.class, value="book.name", align=2, sort=1)
	private XsBook book;		// 书籍id
    @NotNull(message="作家id不能为空")
	@ExcelField(title="作家id", fieldType=XsWriter.class, value="writer.name", align=2, sort=2)
	private XsWriter writer;		// 作家id
    @NotNull(message="帝币不能为空")
	@ExcelField(title="帝币", align=2, sort=3)
	private Double price;		// 帝币
	@ExcelField(title="是否通过(1.是2.正在审核3.否)", dictType="is_pass", align=2, sort=4)
	private String isPass;		// 是否通过(1.是2.正在审核3.否)
	
	public XsPriceApplyFor() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsPriceApplyFor(String id){
		super(id);
	}
}